package com.hsylient.javase.chapter02;

public class EmployTest {

    public static void main(String[] args) {
        Employ[] employs = new Employ[3];
        employs[0] = new Employ("张三", 2300, 1997, 12, 11);
        employs[1] = new Employ("李四", 3300, 1957, 12, 11);
        employs[2] = new Employ("王五", 4300, 1977, 12, 11);

        for (Employ employ : employs) {
            employ.raiseSalary(5);
        }

        for (Employ employ : employs) {
            System.out.println(
                    "name=" + employ.getName() + ", salary=" + employ.getSalary() + ", hireDay=" + employ.getHireDay());
        }
    }
}
